import comtypes.client


#RhinoScriptModule = comtypes.client.GetModule(r"D:\Programs\Rhinoceros 4.0\Plug-ins\RhinoScript.tlb")
RhinoScriptModule = comtypes.client.GetModule(["{75B1E1B4-8CAA-43C3-975E-373504024FDB}",1,0])
#Rhino = comtypes.client.CreateObject("Rhino4.Interface")
Rhino = comtypes.client.CreateObject("Rhino4.Application")


Rhino.Visible = True
rs = Rhino.GetScriptObject.QueryInterface(RhinoScriptModule.IRhinoScript)
print rs
rs.AddCurve([[54,3,0],[2,34,0],[23,45,0]])
print "done"